package com.gjm.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.yaml.snakeyaml.events.Event;

import java.util.Date;

@Data
@TableName("user_info")//数据库名称
public class UserInfo {
    @TableId(type = IdType.AUTO)//设置id为自增
    private Integer id;
    @TableField("username")//指定属性名对应的字段名
    private String username;
    private String password;
    private Integer age;
    private Integer gender;
    private String phone;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
}
